package com.chenxin.wms.service.impl;

import java.util.List;

import com.chenxin.wms.domain.ObDetailEntity;
import com.chenxin.wms.domain.vo.ObDetailVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.chenxin.wms.mapper.ObDetailMapper;
import com.chenxin.wms.service.IObDetailService;

/**
 * 出库明细单Service业务层处理
 *
 * @author gry
 * @date 2025-04-15
 */
@Service
public class ObDetailServiceImpl implements IObDetailService {
    @Autowired
    private ObDetailMapper obDetailMapper;

    /**
     * 查询出库明细单
     *
     * @param obDetailId 出库明细单主键
     * @return 出库明细单
     */
    @Override
    public ObDetailVO selectObDetailById(Long obDetailId) {
        return obDetailMapper.selectObDetailViewById(obDetailId);
    }

    /**
     * 查询出库明细单列表
     *
     * @param obDetailVo 出库明细单
     * @return 出库明细单
     */
    @Override
    public List<ObDetailVO> selectObDetailList(ObDetailVO obDetailVo) {
        return obDetailMapper.selectObDetailViewList(obDetailVo);
    }

    /**
     * 删除出库明细单信息
     *
     * @param obDetailId 出库明细单主键
     * @return 结果
     */
    @Override
    public int deleteObDetailByObDetailId(Long obDetailId) {
        return obDetailMapper.deleteById(obDetailId);
    }
}
